projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
394f6b9
)
Raise an error if creating an unknown xwidget type
author
Po Lu
<luangruo@yahoo.com>
Tue, 9 Nov 2021 04:03:47 +0000
(
05:03
+0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 9 Nov 2021 04:03:47 +0000
(
05:03
+0100)
* src/xwidget.c (Fmake_xwidget): Error if TYPE is invalid (bug#51682).
src/xwidget.c
patch
|
blob
|
history
diff --git
a/src/xwidget.c
b/src/xwidget.c
index 294e9f8788ce1030834d0915cf1902cb1c3ef8ee..4d1d1169af984f3c4852fe75fb578e8d0c9082ec 100644
(file)
--- a/
src/xwidget.c
+++ b/
src/xwidget.c
@@
-128,6
+128,9
@@
fails. */)
CHECK_FIXNAT (width);
CHECK_FIXNAT (height);
+ if (!EQ (type, Qwebkit))
+ error ("Bad xwidget type");
+
struct xwidget *xw = allocate_xwidget ();
Lisp_Object val;
xw->type = type;